package kr.ac.konkuk.dblab.point.quadtree;

import java.awt.geom.Point2D;
import java.util.Set;

import kr.ac.konkuk.dblab.point.builder.QuadTreeBuilder;


public class Root extends CompoundCell {
	public Root() {
		super(null);
	}
	
	public boolean isLeaf() {
		return false;
	}
	
	public CompositeNode parent(CompositeNode node) {
		throw new UnsupportedOperationException();
	}
	
	public String toString() {
		return "Root\n";
	}
	
	public static Root build(Set<Point2D> points, double unit) {
		return QuadTreeBuilder.build(points, unit);
	}
	
	public static Root build(Set<Point2D> points) {
		return build(points, 5);
	}
}
